﻿using System;
using System.ComponentModel.Composition;
using System.Windows;
using Red.Controls.Shell;

namespace Red.Toolkit.SrtViewer
{
    [Export( typeof( IEditorInfo ) )]
    public class EditorInfo : IEditorInfo
    {
        public string Name
        {
            get { return "SRT Viewer"; }
        }

        public Type WindowClass
        {
            get { return typeof( SrtViewer ); }
        }

        public Type SettingsClass
        {
            get { return typeof( UserSettings ); }
        }
    }
    
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class SrtViewer : RedEditorWindow
    {

        #region C-tor

        public SrtViewer( IEditorHost host, EditorInstanceData instanceData, EditorSharedData sharedData )
            : base( host, instanceData, sharedData )
        {
            InitializeComponent();
        }

        #endregion C-tor

        #region Event handlers

        private void HelpBtn_Click( object sender, RoutedEventArgs e )
        {
            // Show help dialog
            HelpDialog helpDlg = new HelpDialog();
            helpDlg.Owner = this;
            helpDlg.ShowDialog();
        }

        private void ToggleHeightRefBtn_Click( object sender, RoutedEventArgs e )
        {
        }

        #endregion Event handlers

    }
}
